﻿@model ShiXuLong.Model.RecPositionModel
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>AddRecPosition</title>
    <link href="~/scripts/css/layui.css" rel="stylesheet" />
    <script src="~/scripts/jquery-3.5.1.js"></script>
    <script src="~/scripts/layui.js"></script>
</head>
<body>
    <div>
        @using (Ajax.BeginForm("AddRecPosition", "Recommend", new AjaxOptions { OnSuccess = "Add" }))
        {
            @*<div class="layui-form-item">
                    @Html.LabelFor(m => m.Id)
                    @Html.TextBoxFor(m => m.Id)
                    @Html.ValidationMessageFor(m => m.Id)
                </div>*@
            <div class="layui-form-item">
                @Html.LabelFor(m => m.Site)
                @Html.TextBoxFor(m => m.Site)
                @Html.ValidationMessageFor(m => m.Site)
            </div>
            <div>
                <button>提交</button>
            </div>
            <script>
                function Add(re) {
                    if (re.success) {
                        alert(re)
                    } else {
                        alert(re.msg)
                    }
                }
            </script>
        }

    </div>
</body>
</html>
